package org.openrap.gwtplugindetect.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import org.openrap.gwtplugindetect.client.getversion.PluginDetectGetVersion;

public class GWTPluginDetect implements EntryPoint {

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {

    HorizontalPanel panel = new HorizontalPanel();
    int[] versions = PluginDetectGetVersion.getJavaVersion();
    for (int version : versions){
      panel.add(new Label(""+version));
    }
    
    RootPanel.get().add(panel);

  }
}
